<?php

class Admin_Form_Bank extends Custom_Form
{

	function  __construct() {
		parent::__construct(null);
	}

	public function init()
    {
        $translate = Zend_Registry::get('translate');
		$this->setTranslator($translate);

        $objBank = new Service_Model_DbTable_Bank();
		$this->setName("bank");
        $this->setMethod('post');

		$this->addElement('text', 'name', array(
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(0, 50)),
			),

            'required'   => true,
            'label'      => __('Name').':',
        ));

		$this->addElement('textarea', 'address', array(
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(0, 255)),
		    ),
            'required'   => true,
            'rows'       => 3,
            'cols'       => 50,
            'label'      => __('Address').':',
        ));

        $this->addElement('text', 'phone', array(
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(0, 15)),
			),
            'required'   => true,
            'label'      => __('Phone').':',
        ));

       	
		$this->addElement('submit', 'save', array(
            'required' => false,
            'ignore'   => true,
            'label'    => __('Save'),
        ));
        
		$this->save->removeDecorator('label');
	}
}